package cn.edu.fudan.type;

/**
 * Created by 80494 on 2017/4/20.
 * this file define the edge type between timeseries
 */
public class Edge {
    //not tested
    private Node leftnode;
    private Node rightnode;
    private String label = "";
    private Double weight=0.0 ;

    public Double getWeight() {
        return weight;
    }

    public Node getLeftnode() {
        return leftnode;
    }

    public Node getRightnode() {
        return rightnode;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setLeftnode(Node leftnode) {
        this.leftnode = leftnode;
    }

    public void setRightnode(Node rightnode) {
        this.rightnode = rightnode;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }
    @Override
    public String toString(){
        return "Leftnode : "+ leftnode.getName()+"\nRightnode :"+ rightnode.getName()+"\nlabel :"+label+"\nweight :"+weight;
    }
}
